<h3>Page Permissions</h3>
<div style='width:550px;'>
<p>By default anyone who has access to the Pages controller can edit pages. You can restrict access to this page by choosing the people you want to be able to access this page. By default an admin is able to edit any page.</p>
<?php echo form_remote_tag('permissions',
            array(
                'name'=>'user_permissions',
                'update'=>'success_messages',
                'before'=>"selectAll('users')",
                'complete'=>"toggle_success();",
                )
            )
 ?>
<?php echo  hidden_field('pages','id') ?>
<?php 
$page_users = $pages->get_page_users($pages->get('id'));
echo select_transfer('users[]', array_diff($users->get_users_as_list(), $page_users), $page_users)?>  
<p><?php echo submit_tag('Modify Permissions')?></p>
<?php echo end_form_tag()?>
</div>